package com.bxs.global;

public enum LogLevel {
    WARNING(1, "warning"),     // 警告
    GENERAL(0, "general"),     // 一般
    DANGER(2, "danger"),       // 危险
    VERY_DANGER(3, "very-danger");        // 该级别标识为极其危险，需要发送邮件通知相关人员

    private Integer code;
    private String msg;

    LogLevel(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
